//package org.ricks.net.consumer;
//
//import org.ricks.common.ModularContext;
//import org.ricks.ioc.RicksContext;
//import org.ricks.protocol.ProtocolManager;
//import org.ricks.router.InnerHandler;
//import org.ricks.router.TcpInnerProtocol;
//
//import java.io.IOException;
//import java.util.Set;
//
//public class GateWayRun {
//
//    public static void main(String[] args) throws IOException {
//        ModularContext.me().scan(Set.of("org.ricks.net"));
//        ProtocolManager.initProtocol(Set.of(ModuleInfo.class,  DefaultPacket.class));
//        RicksContext.me().init();
//        NetContext.me().init();
//        TcpInnerProtocol innerProtocol = new TcpInnerProtocol();
//        InnerHandler innerHandler = new InnerHandler();
//        AioServer tcpServer = new AioServer(9100, innerProtocol, innerHandler);
//        tcpServer.start();
////        Consumer.me().send((short) 2051,null, "1232432");
//    }
//}
